package com.mdd.product.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
/**
 * 商品sku参数
 * @author LikeAdmin
 */
@Data
@ApiModel("商品sku更新参数")
public class ProductSkuUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Long id;
    @NotNull(message = "spuId参数缺失")
    @ApiModelProperty(value = "spu编号")
    private Long spuId;
    @NotNull(message = "price参数缺失")
    @ApiModelProperty(value = "商品价格，单位：元")
    private BigDecimal price;
    @NotNull(message = "marketPrice参数缺失")
    @ApiModelProperty(value = "市场价，单位：元")
    private BigDecimal marketPrice;
    @NotNull(message = "costPrice参数缺失")
    @ApiModelProperty(value = "成本价，单位： 元")

    private BigDecimal costPrice;
    @NotNull(message = "picUrl参数缺失")
    @ApiModelProperty(value = "图片地址")
    private String picUrl;
    @NotNull(message = "salesCount参数缺失")
    @ApiModelProperty(value = "商品销量")
    private Integer salesCount;

    @Schema(description = "属性数组")
    private String properties;
}
